Timm Bäder [Thu, 29 Aug 2019 13:56:13 +0000 (13:56 +0000)]
Merge branch 'typo' into 'master'
popover: fix typo in schema string
See merge request GNOME/gtk!1071
Alexandre Franke [Thu, 29 Aug 2019 12:53:34 +0000 (12:53 +0000)]
Update French translation
Alexandre Franke [Thu, 29 Aug 2019 12:50:20 +0000 (14:50 +0200)]
popover: fix typo in schema string
Ask Hjorth Larsen [Thu, 29 Aug 2019 10:37:41 +0000 (12:37 +0200)]
Updated Danish translation of gtk-properties
Ask Hjorth Larsen [Thu, 29 Aug 2019 10:37:41 +0000 (12:37 +0200)]
Updated Danish translation of gtk
Jordi Mas [Wed, 28 Aug 2019 17:37:59 +0000 (19:37 +0200)]
Update Catalan translation
Benjamin Otte [Mon, 26 Aug 2019 17:00:34 +0000 (17:00 +0000)]
Merge branch 'wip/ricotz/issue2107' into 'master'
gsk: Add missing 'transfer full' annotations of instance parameters
Closes #2107
See merge request GNOME/gtk!1065
Rico Tzschichholz [Mon, 26 Aug 2019 13:24:29 +0000 (15:24 +0200)]
gsk: Add missing 'transfer full' annotations of instance parameters
Fixes https://gitlab.gnome.org/GNOME/gtk/issues/2107
Matthias Clasen [Mon, 26 Aug 2019 13:50:43 +0000 (13:50 +0000)]
Merge branch 'office-runner-crash' into 'master'
Fix a crash in gtk-builder-tool
See merge request GNOME/gtk!1064
Matthias Clasen [Mon, 26 Aug 2019 13:34:15 +0000 (15:34 +0200)]
Fix a crash in gtk-builder-tool
Crash pointed out by Bastien Nocera.
Testcase included.
Changwoo Ryu [Mon, 26 Aug 2019 11:20:16 +0000 (11:20 +0000)]
Update Korean translation
Timm Bäder [Mon, 26 Aug 2019 09:18:47 +0000 (09:18 +0000)]
Merge branch 'doc-typos' into 'master'
Minor typos in the Documentation (a/an)
See merge request GNOME/gtk!1061
Дилян Палаузов [Sun, 25 Aug 2019 12:52:24 +0000 (12:52 +0000)]
Minor typos in the Documentation (a/an)
Matthias Clasen [Sun, 25 Aug 2019 11:58:02 +0000 (11:58 +0000)]
Merge branch 'gdkmonitor-x11-manufacturer' into 'master'
gdk: x11: Fill GdkMonitor manufacturer with PNP id from EDID
Closes #1765
See merge request GNOME/gtk!859
Balázs Úr [Sat, 24 Aug 2019 20:23:45 +0000 (20:23 +0000)]
Update Hungarian translation
Anders Jonsson [Thu, 22 Aug 2019 09:45:38 +0000 (09:45 +0000)]
Update Swedish translation
Emmanuele Bassi [Wed, 21 Aug 2019 19:18:17 +0000 (19:18 +0000)]
Merge branch 'build-remove-xiproto-xreply-check-gtk4' into 'master'
Remove NEED_XIPROTO_H_FOR_XREPLY check
See merge request GNOME/gtk!1059
Christoph Reiter [Wed, 21 Aug 2019 18:46:30 +0000 (20:46 +0200)]
Remove NEED_XIPROTO_H_FOR_XREPLY check
It was only defined in the old autotools build to support a >20 year old x11,
https://bugzilla.gnome.org/show_bug.cgi?id=148032
Daniel Mustieles [Tue, 20 Aug 2019 10:45:23 +0000 (12:45 +0200)]
Updated Spanish translation
Daniel Șerbănescu [Mon, 19 Aug 2019 11:50:59 +0000 (11:50 +0000)]
Update Romanian translation
Daniel Șerbănescu [Mon, 19 Aug 2019 11:09:45 +0000 (11:09 +0000)]
Update Romanian translation
Aurimas Černius [Sun, 18 Aug 2019 18:41:16 +0000 (21:41 +0300)]
Updated Lithuanian translation
Kukuh Syafaat [Fri, 16 Aug 2019 09:16:05 +0000 (09:16 +0000)]
Update Indonesian translation
Asier Sarasua Garmendia [Fri, 16 Aug 2019 08:01:11 +0000 (08:01 +0000)]
Update Basque translation
Asier Sarasua Garmendia [Fri, 16 Aug 2019 07:55:49 +0000 (07:55 +0000)]
Update Basque translation
Timm Bäder [Thu, 15 Aug 2019 15:21:47 +0000 (17:21 +0200)]
scale: Add a destroy notify to set_format_value_func
Closes #2098
Timm Bäder [Thu, 15 Aug 2019 15:12:30 +0000 (17:12 +0200)]
scaler: Avoid some signal connections
We're mainly using this for icons that will never change contents or
size, and we're using a GtkScaler per such icon when on a hidpi setup,
so just avoid the two signal connections per icon.
Timm Bäder [Wed, 14 Aug 2019 09:33:56 +0000 (11:33 +0200)]
spinbutton: Use gtk_button_new_from_icon_name
Timm Bäder [Tue, 13 Aug 2019 10:29:00 +0000 (12:29 +0200)]
widget: Don't duplicate events to translate coordinates
Timm Bäder [Tue, 13 Aug 2019 10:10:43 +0000 (12:10 +0200)]
widget: Remove captured event handler code
Timm Bäder [Tue, 13 Aug 2019 10:08:36 +0000 (12:08 +0200)]
scrolledwindow: Stop using _gtk_widget_set_captured_event_handler
We can use an event controller with phase = CAPTURE these days.
Daniel Șerbănescu [Wed, 14 Aug 2019 09:07:20 +0000 (09:07 +0000)]
Update Romanian translation
(cherry picked from commit
1e8d46352e3cf85e1f12edaf43e73134a6419f29)
Daniel Șerbănescu [Wed, 14 Aug 2019 06:30:03 +0000 (06:30 +0000)]
Update Romanian translation
(cherry picked from commit
10603f95985940a45d283104b123aa5be006a6ed)
Matthias Clasen [Tue, 13 Aug 2019 21:18:41 +0000 (21:18 +0000)]
Merge branch '948-patch-renaming-a-file-can-make-it-to-loose-selection_GTK4' into 'master'
filechooser: keep file selected after being renamed
Closes #948
See merge request GNOME/gtk!1053
Matthias Clasen [Tue, 13 Aug 2019 19:16:03 +0000 (15:16 -0400)]
text view: Fix a typo
Pointed out in https://gitlab.gnome.org/GNOME/gtk/issues/2094
Jordi Mas [Tue, 13 Aug 2019 06:40:18 +0000 (08:40 +0200)]
Update Catalan translation
Daniel Șerbănescu [Tue, 13 Aug 2019 04:37:04 +0000 (04:37 +0000)]
Update Romanian translation
(cherry picked from commit
f9acfa1bd846f1caa411ac06177108ca2ba1d6c3)
Nelson Benítez León [Mon, 12 Aug 2019 21:32:56 +0000 (17:32 -0400)]
filechooser: keep file selected after being renamed
Because otherwise when the file list is sorted "by name"
and the new name causes the file to be re-sorted to another
row, the selection stays in the old row which is now
occupied by a different file.
Fixed by keeping track of the renamed file and revealing
it in the "row-changed" signal handler, which gets emitted
after a file is renamed.
Fixes issue #948
Daniel Șerbănescu [Mon, 12 Aug 2019 08:35:22 +0000 (08:35 +0000)]
Update Romanian translation
Piotr Drąg [Sun, 11 Aug 2019 12:37:14 +0000 (14:37 +0200)]
Update Polish translation
Timm Bäder [Sun, 11 Aug 2019 08:41:34 +0000 (10:41 +0200)]
Adwaita: Style spinbutton up/down children explicitly
Once again to increase the specificty above that of the
"list row button.etc." selector. Makes hovering spinbutton buttons in
lists look normal again.
Timm Bäder [Sun, 11 Aug 2019 08:30:01 +0000 (10:30 +0200)]
Adwaita: Update .devel headerbar styling
Just pull in the changes from gtk-3-24
Timm Bäder [Sun, 11 Aug 2019 08:06:52 +0000 (10:06 +0200)]
range: Avoid a divison by 0
Based on a patch by Blake Latchford
Fixes #618
Daniel Boles [Mon, 7 Aug 2017 09:38:37 +0000 (10:38 +0100)]
AccelLabel: Add get_accel_closure() accessor
Fixes #875
Timm Bäder [Sun, 11 Aug 2019 06:34:43 +0000 (08:34 +0200)]
color chooser: Port checkered pattern drawing from cairo
Timm Bäder [Sat, 10 Aug 2019 18:08:59 +0000 (20:08 +0200)]
range: Use public delay-factory API
Timm Bäder [Sun, 11 Aug 2019 06:53:10 +0000 (08:53 +0200)]
cellrenderer: Add accessors for {get,set}_is_expande{r,d}
Timm Bäder [Sat, 10 Aug 2019 17:56:10 +0000 (19:56 +0200)]
testsuite: Add another repeat node test case
Timm Bäder [Sat, 10 Aug 2019 17:50:17 +0000 (19:50 +0200)]
Adwaita: Fix hovering modelbutton arrows
This CSS snippet was supposed to only recolor the popover arrow but
ended up also recoloring the > arrow on modelbuttons that show a
submenu. Make the selector more specific.
Timm Bäder [Sat, 10 Aug 2019 17:36:56 +0000 (19:36 +0200)]
iconcache: ref textures
We can't just assume that the pointer we'se using as a cache key will
stay unique forever. The texture might be freed, and a later allocated
texture might have the same addres now, causing the cache to return
incorrect results.
Timm Bäder [Sat, 10 Aug 2019 13:29:22 +0000 (15:29 +0200)]
iconcache: Replace broken debugging code
Timm Bäder [Sat, 10 Aug 2019 12:47:02 +0000 (14:47 +0200)]
testsuite: Add a repeat node test case
Timm Bäder [Sat, 10 Aug 2019 12:45:45 +0000 (14:45 +0200)]
gl renderer: Implement a subset of repeat nodes
Timm Bäder [Sat, 10 Aug 2019 07:14:13 +0000 (09:14 +0200)]
treeview: Redo tree line drawing using textures
Gets rid of the remaining cairo nodes used for line drawing.
Timm Bäder [Sat, 10 Aug 2019 06:49:45 +0000 (08:49 +0200)]
treeview: Redo grid line drawing using textures
The cairo pattern in use was simple enough, so just use a 2×1 or 1×2
texture to draw horizontal and vertical grid lines. This avoids a bunch
of cairo nodes (that can't be cached by the renderers).
Timm Bäder [Sat, 10 Aug 2019 06:43:44 +0000 (08:43 +0200)]
snapshot: Annotate child_bounds parameter of push_repeat as nullable
Timm Bäder [Sat, 10 Aug 2019 06:09:36 +0000 (08:09 +0200)]
treeview: Shorten destroy() implementation
Timm Bäder [Fri, 9 Aug 2019 18:22:01 +0000 (20:22 +0200)]
treeview: Remove two _dashes members
Tree lines and grid lines always look the same these days.
Timm Bäder [Fri, 9 Aug 2019 18:01:43 +0000 (20:01 +0200)]
treeview: Remove GTK_TREE_VIEW_FOREGROUND_LINE
Timm Bäder [Fri, 9 Aug 2019 17:45:36 +0000 (19:45 +0200)]
spinbutton: Remove an unnecessary queue_draw() call
Timm Bäder [Fri, 9 Aug 2019 17:36:01 +0000 (19:36 +0200)]
scale: Properly update when inverted
Just queue_resize()ing the range itself doesn't work as it will just
re-allocate all the child widgets (i.e. just the trough) to its old
position and size.
Timm Bäder [Fri, 9 Aug 2019 17:24:32 +0000 (19:24 +0200)]
scale: Make a function shorter
Timm Bäder [Fri, 9 Aug 2019 17:20:57 +0000 (19:20 +0200)]
range: Remove outdated comment
Timm Bäder [Sat, 10 Aug 2019 13:39:47 +0000 (13:39 +0000)]
Merge branch 'wip/sadiq/buildable-2080' into 'master'
builderparser: Allow bind-source without bind-property
Closes #2080
See merge request GNOME/gtk!1047
Mohammed Sadiq [Thu, 8 Aug 2019 01:51:08 +0000 (07:21 +0530)]
Add builder tests for bind-source without bind-property
Fixes https://gitlab.gnome.org/GNOME/gtk/issues/2080
Mohammed Sadiq [Wed, 7 Aug 2019 02:12:03 +0000 (07:42 +0530)]
builderparser: Allow bind-source without bind-property
This allow users to bind same property of two objects with only
specifing “name” and “bind-source” in UI file.
Fixes https://gitlab.gnome.org/GNOME/gtk/issues/2080
Daniel Șerbănescu [Sat, 10 Aug 2019 07:25:36 +0000 (07:25 +0000)]
Update Romanian translation
Mohammed Sadiq [Sat, 10 Aug 2019 06:41:13 +0000 (12:11 +0530)]
widget: Fix a typo in documentation
Christian Hergert [Fri, 9 Aug 2019 19:52:16 +0000 (12:52 -0700)]
textview: clear cached entries before releasing containers
We want to ensure all of the display cache entries are released in the
normal fashion before releasing the structures so that we can maintain
the invariant that cache_iter will always exist while in the cache.
Timm Bäder [Fri, 9 Aug 2019 15:04:58 +0000 (17:04 +0200)]
treeviewcolumn: Remove cell_area parameter from _cell_get_size
Fixes #297
Timm Bäder [Fri, 9 Aug 2019 13:55:38 +0000 (15:55 +0200)]
iconhelper: Don't snapshot 0 sized icons
This is happening for me when snapshotting small thumbnails in the file
chooser. The GtkScaler will scale the 1px height/width by 2, resulting
in nothing being drawn at all.
Timm Bäder [Fri, 9 Aug 2019 12:26:57 +0000 (14:26 +0200)]
scale: Fix value widget measurement
Since we set the size request of the label, the later measure()
call would return at least the size we set, making the size only ever
grow.
Timm Bäder [Fri, 9 Aug 2019 11:32:24 +0000 (13:32 +0200)]
scale: Replace format-value signal
There is no reason for this to be a signal, since multiple handlers
don't make sense anyway. It was also broken because the scale needs to
know when a signal handler is added so it can update the value
representation.
Replace the signal with a set_format_value_func function which allows us
to do that.
Fixes #113
Timm Bäder [Fri, 9 Aug 2019 10:08:51 +0000 (12:08 +0200)]
range: remove range_size_request vfunc
It's unneeded in GtkScale and named after the gtk2 size_request function
Timm Bäder [Fri, 9 Aug 2019 08:35:10 +0000 (10:35 +0200)]
scale: Allocate left marks next to trough
Timm Bäder [Fri, 9 Aug 2019 08:33:52 +0000 (10:33 +0200)]
testscale: Properly call gtk_main_quit
Timm Bäder [Fri, 9 Aug 2019 08:33:43 +0000 (10:33 +0200)]
scale: Fix an uninitialized value
Timm Bäder [Wed, 7 Aug 2019 17:32:58 +0000 (19:32 +0200)]
widget: Avoid a few type checks
Aurimas Černius [Fri, 9 Aug 2019 11:21:11 +0000 (14:21 +0300)]
Updated Lithuanian translation
Timm Bäder [Thu, 8 Aug 2019 16:41:04 +0000 (16:41 +0000)]
Merge branch 'adwaita-scales-marks-fintune-fix-master' into 'master'
Adwaita: Fix fine-tune mode for scales with marks
Closes #1799
See merge request GNOME/gtk!696
Benjamin Otte [Thu, 8 Aug 2019 07:27:10 +0000 (07:27 +0000)]
Merge branch 'wip/gtk-icon-theme-no-svg-loader' into 'master'
gtk/icon-theme: Handle lack of SVG loader gracefully
Closes #2084
See merge request GNOME/gtk!1049
Jonas Ådahl [Wed, 7 Aug 2019 17:20:46 +0000 (19:20 +0200)]
gtk/icon-theme: Handle lack of SVG loader gracefully
When loading a SVG icon from a gresource file only containing SVG icons,
but without having a SVG loader available in gdk-pixbuf, we would crash
when trying to eventually load the resource. Fix this by gracefully
handling this by simply failing to load the icon, while the first time
it happens, log a warning.
Fixes: https://gitlab.gnome.org/GNOME/gtk/issues/2084
Timm Bäder [Wed, 7 Aug 2019 16:49:10 +0000 (18:49 +0200)]
Adwaita: Fix round titlebar button outline radius
Fixes #2073
frederik.feichtmeier [Thu, 1 Aug 2019 14:20:28 +0000 (10:20 -0400)]
Exclude appmenu titlebuttons
frederik.feichtmeier [Thu, 1 Aug 2019 14:09:52 +0000 (10:09 -0400)]
Make titlebuttons round
- use even sides for the titlebuttons so the result is a circle and not an ellipse
- add maximum border radius
- set min width/height to 0
- adjust margin and padding to match the previous look
Timm Bäder [Wed, 7 Aug 2019 12:09:33 +0000 (14:09 +0200)]
gesturelongpress: Add getter/setter for delay-factor
Timm Bäder [Wed, 7 Aug 2019 11:12:57 +0000 (13:12 +0200)]
passwordentry: Fix a documentation comment parameter name
Timm Bäder [Sun, 4 Aug 2019 12:37:49 +0000 (14:37 +0200)]
placessidebar: Remove popover using gtk_widget_unparent()
the gtk_widget_destroy() does not work anymore.
Timm Bäder [Sun, 4 Aug 2019 12:28:06 +0000 (14:28 +0200)]
adwaita: Increase spinbutton button styling specificity
So it trumps the 'toned down' button styling.
Fixes #2012
Priit Laes [Tue, 6 Aug 2019 06:16:01 +0000 (09:16 +0300)]
gdk: x11: Fill GdkMonitor manufacturer with PNP id from EDID
Previously, the manufacturer property of the GdkMonitor was NULL,
and having at least PNP id at GdkMonitor.manufacturer makes it
possible to distinguish between different monitors programmatically.
Matthias Clasen [Mon, 5 Aug 2019 12:20:06 +0000 (12:20 +0000)]
Merge branch 'implement-choices-file-chooser-native-win32-for-gtk-4' into 'master'
Implement choices for GtkFileChooserNativeWin32 [Gtk4]
Closes #1982
See merge request GNOME/gtk!1043
Jordi Mas [Mon, 5 Aug 2019 04:18:53 +0000 (06:18 +0200)]
Update Catalan translation
Jor Teron [Sun, 4 Aug 2019 18:24:49 +0000 (18:24 +0000)]
Add Karbi translation
Jor Teron [Sun, 4 Aug 2019 18:22:12 +0000 (18:22 +0000)]
Add Karbi translation
Christian Kirbach [Sun, 4 Aug 2019 16:16:01 +0000 (16:16 +0000)]
Update German translation
Luca Bacci [Tue, 16 Jul 2019 10:43:43 +0000 (12:43 +0200)]
GtkFileChooserNativeWin32: Uninitialize COM at end of thread
GtkFileChooserNativeWin32 is created and shown on a secondary thread.
This thread initializes COM support with CoInitializeEx but does not
finalize it, so we have a leak. Fix that by calling CoUninitialize()
before thread terminates.
See Merge Request !1043
Luca Bacci [Fri, 12 Jul 2019 08:21:50 +0000 (10:21 +0200)]
GtkFileChoooserNative: change prepend to append for insertions in choices list
Although slightly less efficient, keeping the order in the choices
list makes it easier for GtkFileChooserNative implementations to
add widgets in the order specified by the application.
See Merge Request !1043
Luca Bacci [Wed, 10 Jul 2019 13:21:01 +0000 (15:21 +0200)]
Implement choices for GtkFileChooserNativeWin32
See Merge Request !1043
Timm Bäder [Thu, 1 Aug 2019 14:26:43 +0000 (16:26 +0200)]
window: Remove some leftover event code
Timm Bäder [Thu, 1 Aug 2019 14:03:57 +0000 (16:03 +0200)]
popover: Use GTK_POS_BOTTOM as default position
This has always made a lot more sense.